const state = {
  height: 0
}
const mutations = {
  SET_hEIGHT: (state, data) => {
    // console.log(data)
    if (data > 500) {
      state.height = data
    } else {
      state.height = 500
    }
  }
}
const actions = {
  // changeScreenHeight({ commit }, data) {
  //   commit('SET_hEIGHT', data)
  // },
  get_height({ commit }, device) {
    commit('SET_hEIGHT', device)
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
